/* 全局混合 */

/* 内圆角 */
@mixin conCavRadius($top, $left, $right,$size, $color) {
  position: absolute;
  top: $top;
  right: $right;
  left: $left;
  z-index: 5;
  width: $size;
  height: $size;
  content: '';
  background-color: $color;
  border-radius: 50%;
}

/* 列表中内圆角 */
@mixin listRadius($top, $left, $right,$size, $color) {
  &:not(:last-of-type) {
    border-bottom: 1px dotted #c4c3c5;
  }

  &:not(:first-of-type) {
    &::before {
      @include conCavRadius($top, $left, auto,$size, $color);
    }

    &::after {
      @include conCavRadius($top, auto, $right,$size, $color);
    }
  }
}

/* 溢出省略 */
@mixin textEllipsis($line:1) {
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: $line;
  -webkit-box-orient: vertical;
}

/* 清除btn默认样式 */
@mixin clearBtnStyle() {
  padding: 0;
  line-height: inherit;
  background-color: transparent;
  border-radius: 0;
}
